﻿<%@ Page  Language="C#" AutoEventWireup="true" CodeBehind="add_test_detail_form.aspx.cs" Inherits="SQT.tracnghiem.Ajax.ASP.Certificate.add_test_detail" %>
<%@ Import Namespace="DataAccess" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<body>
    <%
        var get_type = new TblTestDetailTypeController().FetchAll();
         %>
    <header class="w3-padding w3-large w3-center">Thêm Câu Hỏi</header>
    <div class="w3-row w3-padding">
        <label class="w3-quarter w3-center">Loại câu hỏi</label>
        <select class="w3-quarter" id="test_detail_type">
            <%foreach(TblTestDetailType tdt in get_type){ %>
            <option value="<%=tdt.Id %>"><%=tdt.TypeName %></option>
            <%} %>
        </select>
        &nbsp;<a onclick="document.getElementById('media-collection').style.display = 'block'" class="w3-btn w3-teal w3-border"><i class="fa fa-picture-o"></i>&nbsp;Mở thư viện</a>
<%--        <a class="btn_edit_type w3-btn w3-teal w3-border w3-border-white" title="Chỉnh sửa loại câu hỏi"><i class="fa fa-cogs"></i></a>
        <a onclick="document.getElementById('themloaich').style.display='block'" class="w3-btn w3-teal w3-border w3-border-white" title="Thêm loại câu hỏi"><i class="fa fa-plus"></i></a>--%>
    </div>
    <div class="w3-row w3-padding">
        <label class="w3-quarter w3-center">Nội dung</label><textarea id="add_ques_name" name="ndch" autofocus="autofocus" rows="4" class="w3-half"></textarea>
    </div>
    <div class="w3-row w3-padding">
        <label class="w3-quarter w3-center">Phương án 1</label><input type="text" name="1" class="add_ques_detail w3-half" />
    </div>
    <div class="w3-row w3-padding">
        <label class="w3-quarter w3-center">Phương án 2</label><input type="text" name="2" class="add_ques_detail w3-half" />
    </div>
    <div class="w3-row w3-padding">
        <label class="w3-quarter w3-center">Phương án 3</label><input type="text" name="3" class="add_ques_detail w3-half" />
    </div>
    <div class="w3-row w3-padding">
        <label class="w3-quarter w3-center">Phương án 4</label><input type="text" name="4" class="add_ques_detail w3-half" />
    </div>
    <div class="w3-row w3-padding">
        <label class="w3-quarter w3-center">Đáp án</label>
        <div class="radio w3-half">
            <input type="radio" name="pa" value="1" id="pa1" /><label for="pa1">Phương án 1</label>
            <input type="radio" name="pa" value="2" id="pa2" /><label for="pa2">Phương án 2</label>
            <input type="radio" name="pa" value="3" id="pa3" /><label for="pa3">Phương án 3</label>
            <input type="radio" name="pa" value="4" id="pa4" /><label for="pa4">Phương án 4</label>
        </div>
    </div>
    <div class="w3-row w3-padding w3-center">
        <a class="btn_add_test_detail w3-btn w3-teal w3-border w3-border-white"><i class="fa fa-save"></i>&nbsp;Lưu</a>
    </div>
</body>
</html>
